package org.openweathermap.model;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class DaysInfo {
	public int cod;
	public float message;
	public City city;
	public int cnt;
	public DayInfo[] list;

	public static DaysInfo parse(String json) {
		try {
			Gson gson = new GsonBuilder().create();
			DaysInfo daysInfo = gson.fromJson(json, DaysInfo.class);
			return daysInfo;
		} catch (Exception e) {
			return null;
		}
	}
}
